{% extends "shop/base.html" %}
{% block title %}Your orders{% endblock %}
<!DOCTYPE html>
<style>
    th,td,table {
        border: 1px solid black;
    }
</style>
{% block content %}
<table class="cart">
    <tr>
    <th>id</th>
    <th>first_name</th>
    <th>last_name</th>
    <th>email</th>
    <th>address</th>
    <th>postalcode</th>
    <th>city</th>
    <th>total_cost</th>
    <th>created</th>
    <th>updated</th>
    <th>delete</th>
    </tr>
    {% for order in orders %}
    	<tr>
            <td>{{ order.id }}</td>
            <td>{{ order.first_name }}</td>
            <td>{{ order.last_name }}</td>
            <td>{{ order.email }}</td>
            <td>{{ order.address }}</td>
            <td>{{ order.postal_code }}</td>
            <td>{{ order.city }}</td>
            <td>{{ order.total_cost }}</td>
            <td>{{ order.created }}</td>
            <td>{{ order.updated }}</td>
            <td><a href="{% url "orders:order_delete" order.id %}">Remove</a></td>
        </tr>
    {% endfor %}
</table>
<a href="{% url 'shop:product_list' %}">Return to the Homepage</a>
{% endblock %}
